import { Component, OnInit, Injector } from '@angular/core';
import { NgZorroPageBaseComponent } from '../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component';
import { HttpService } from "../../core/service/http.service";
import { Router, NavigationExtras } from "@angular/router";
import {
	AndOr, Compare, ExpressionPair, PagedResultDto, PagerSearchInput, ElementViewType, BaseComponentConfig,
	SystemFormControl, FieldType, ElementShowType, CustomNavigation, TeacherOutput
} from "../..";
import { NzMessageService, NzModalService } from 'ng-zorro-antd';
import {
	FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators,
	FormControl
} from "@angular/forms";


@Component({
	selector: 'app-system-form-test',
	templateUrl: '../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component.html',
	styleUrls: ['../../core/ng-zorro-page-base-component/ng-zorro-page-base-component.component.scss']
})
export class TeacherComponent extends NgZorroPageBaseComponent implements OnInit {

	constructor(injector: Injector) {
		super(injector,
			new BaseComponentConfig("TeacherInfo/GetAll", "TeacherInfo/Create", "TeacherInfo/Update",
				"TeacherInfo/Get", "TeacherInfo/Delete", "id", "TeacherInfo", "教师信息管理"
			)
		);
	}

	getNewEntity(): TeacherOutput {
		return new TeacherOutput();
	}

	async navigateCustom(url: string, pid: any) {

	}
	showModalForComponent(entity: any, tag: any) {
		throw new Error("Method not implemented.");
	}
}
